import request from '@/utils/request'

// 查询我的日程列表
export function listMine(query) {
  return request({
    url: '/management/mine/list',
    method: 'post',
    data: query
  })
}

// 查询会议信息
export function getMeetingById(id) {
  return request({
    url: `/meeting/manage/${id}`,
    method: 'get'
  })
}

// 新增我的日程
export function addMine(data) {
  return request({
    url: '/management/mine',
    method: 'post',
    data: data
  })
}

// 查询我的日程详细
export function getMine(id) {
  return request({
    url: '/management/mine/' + id,
    method: 'get'
  })
}

// 修改我的日程
export function updateMine(data) {
  return request({
    url: '/management/mine',
    method: 'put',
    data: data
  })
}

// 删除我的日程
export function delMine(id,datesType) {
  return request({
    url: `/management/mine/${id}/${datesType}`,
    method: 'delete'
  })
}


